Lazy Queue: A new approach to implementing the Pending-event Set
نویسندگان
چکیده
In discrete event simulation, very often the future event set is represented by a priority queue. The data structure used to implement the queue and the way operations are performed on it are often crucial to the execution time of a simulation. In this paper a new priority queue implementation strategy, the Lazy Queue, is presented. It is tailored to handle operations on the pending event set efficiently. The Lazy Queue is a kind of multi-list data structure that delays the sorting process until a point near the time where the elements are to be dequeued. In this way, the time needed to sort new elements in the queue is reduced. We have performed several experiments comparing queue access times with the access times of the implicit heap and the calendar queue. Our experimental results indicate that the Lazy Queue is superior to these priority queue implementations.
منابع مشابه
A Comparative Study of Some Priority Queues Suitable for Implementation of the Pending Event Set1
Implementation of the pending event set (PES) is often crucial to the execution speed of a simulation. Parallel access implementation of the PES is a possible means of gaining performance improvement in discrete event simulation. In this paper a comparative study of some sequential and parallel access implementations of the PES is presented, these include linked lists, the Calendar Queue, the L...
متن کاملFELT: A Far Future Event List Structure Optimized for Calendar Queues
Calendar queues (CQ) are often employed in discrete event simulators to store pending events. They can achieve O(1) access time as long as the CQ resizes often enough to ensure that events are not skewed but evenly distributed in the queue structure. However, a resize operation would involve creating a new CQ structure and then moving each item from the old CQ to the new CQ before discarding th...
متن کاملAppointment process of open-heart surgery in Shahid Rajaei Heart Hospital using a discrete event simulation approach
Background: The waiting list is a list of selected patients in the surgical queue. If demand exceeds capacity, the waiting list grows rapidly, which may lead to unacceptable waiting for patients, especially those in need of acute medical care. Patients waiting for heart surgery are placed on the waiting list for surgery, and sometimes the waiting time is longer than patients expect. Reducing th...
متن کاملA New Form of Efficient Tree-based Priority Queues for Discrete Event Simulation
A priority queue plays an important role in stochastic discrete event simulations for as much as 40% of a simulation execution time is consumed by the pending event set management. This article describes a new form of tree-based priority queues which employs the demarcation procedure to systematically split a single tree-based priority queue into many smaller trees, each divided by a logical ti...
متن کاملThe Bounded Sequential Searching (Bss) Priority Queue in Discrete Event Simulation
In Discrete Event Simulation the whole running time is mainly determined by the type of data structure intended to manage the pending event set. The Bounded Sequential Searching (BSS) Priority Queue is a pending event set implementation proposal for which empirical evidence of good performance, under the Hold Model, is shown. The complexity of BSS associated algorithms are assessed and some imp...
متن کامل